package org.soma.sso.server.exception;

public class SsoException extends RuntimeException {

	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = 848988922500088397L;
	/**
	 * 错误编码
	 */
	private String errorCode;
	/**
	 * 错误类型
	 */
	private String errorType;
	/**
	 * 错误描述
	 */
	private String errorMsg;



	public SsoException() {

	}

	public SsoException(String errorMsg) {
		this.errorMsg=errorMsg;
	}

	public SsoException(String errorCode,String errorMsg,Throwable cause) {
		this.errorCode=errorCode;
		this.errorMsg=errorMsg;
	}

	public SsoException(String errorCode,String errorMsg) {
		this.errorCode=errorCode;
		this.errorMsg=errorMsg;
	}
	public SsoException(String errorCode,String errorType,String errorMsg) {
		this.errorCode=errorCode;
		this.errorType=errorType;
		this.errorMsg=errorMsg;
	}

	public String getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}

	public String getErrorMsg() {
		return errorMsg;
	}

	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}

	public String getErrorType() {
		return errorType;
	}

	public void setErrorType(String errorType) {
		this.errorType = errorType;
	}
}
